package demo23;
import java.util.Scanner;
public class test{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m= sc.nextInt();
        char num='A';
        for (int i=0;i<n;i++){
            for (int k=0;k<m;k++){
                System.out.print((char) (num+Math.abs(i-k)));
            }
            System.out.println();
        }
    }
}

